package ethan;

import com.google.common.base.Strings;

/**
 * author ethan
 * create 2018-03-23 上午11:50
 * desc
 **/
public class getDataFromArchive implements Strategy{
    public OrderDetails getOrderDetails(String orderNo) {
        if(Strings.isNullOrEmpty(orderNo) && orderNo.equals("xep123456")){
            return null;
        }
        return OrderDetails.builder()
                .id(1)
                .contactName("张三")
                .orderNo(orderNo)
                .price(20)
                .tag("archive")
                .build();
    }
}
